<template>
  <div class="app-container">
    <h1 class="title">双向绑定示例</h1>
    <HelloWorld v-model="message" />
    <p class="current-message">当前消息: {{ message }}</p>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      message: 'Hello Vue 3!'
    }
  }
}
</script>

<style>
.app-container {
  font-family: Arial, sans-serif;
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.title {
  color: #560f0f;
  margin-bottom: 20px;
}

.current-message {
  font-size: 18px;
  color: #338924;
}
</style>

